package com.snowfeel.sfmall.sys.convert;

import com.snowfeel.sfmall.security.vo.SecurityUserVo;
import com.snowfeel.sfmall.sys.dto.SysUserParam;
import com.snowfeel.sfmall.sys.model.SysUser;
import com.snowfeel.sfmall.sys.vo.SysUserVo;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author guomenghuai
 * @date 2024/8/25
 * @Description
 */
@Mapper(componentModel = "spring")
public interface SysUserConvert {

    SysUserVo convertVo(SysUser sysUser);
    List<SysUserVo> convertVoList(List<SysUser> sysUsers);

    SysUser convertPo(SysUserParam adminParam);

    SecurityUserVo convertSecurityUserVo(SysUserVo sysUserVo);
}
